﻿@using MVCTest.Models;
@model IEnumerable<Student>
    @{
        Layout = null;
    }

    <!DOCTYPE html>

    <html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <title>Index</title>
    </head>
    <body>
        <div>
            <ul>
                @*@foreach (Student stu in (ViewBag.List as IEnumerable<MVCTest.Models.Student>))
                {
                    <li>stu.Name</li>
                }*@



               @foreach (Student stu in Model)
                  {
                      <li>@stu.Name</li>
                  }

            </ul>
        </div>
    </body>
</html>
